#pragma once
#include "Sprite.h"
#include "Object.h"
#include "MoveObject.h"

#define V_JUMP 7.0f
enum IS_STATE
{
	IS_JUMP,
	IS_RUN,
	IS_INJURE,
	IS_DEATH,
	IS_SINK
};
class IS : public Object, public MoveObject
{
protected:
	Sprite* left;
	Sprite* jump_left;
	Sprite* right;
	Sprite* jump_right;
	Sprite* sink;
	float timeDelay;	
	float dieTime;		
	Box* current ;
	IS_STATE is_state;
public:	
	IS(Box* box);

	~IS(void);

	void init();

	void update();

	void render();

	virtual Box* getCollisionBox();

};

